getDanMuList();

function getDanMuList() {
    $.ajax({
        type: "get",
        url: "https://www.shenxuanche.com/json/danmaku.json",
        dataType: "json",
        success: function(json) {
            console.log(json);
            var damuList = json.items;
            let damuListHtml = ''
            $.each(damuList, function(index, item) {
                damuListHtml += `
                <div class="barrage-message">
                    <span>${item.userName}：</span>
                    <span>${item.content}</span>
                 </div>
                `
            })
            $(".barrage-collapse-wrap").append(damuListHtml);
        }
    })
}
$("#danmup").DanmuPlayer({
    src: "https://video.shenxuanche.com/transcode_sxc_57f97ad5-a29d-15a9-d6e3-97a4aec43eb1_720p.mp4",
    height: "566px", //区域的高度
    width: "1060px" //区域的宽度
        ,
    urlToGetDanmu: "",
    urlToPostDanmu: ""
});